package main

import (
	"yuge/retriever/mock"
	"fmt"
	real2 "yuge/retriever/real"
)

func get(r mock.RetrieverGet) string {
	return r.Get("http://www.baidu.com")
}

func main() {
	var r mock.RetrieverGet
	r = &mock.MockRetriever{"www.google.com"}
	fmt.Println(get(r))
	fmt.Println(get(&mock.MockRetriever{"hehe.com"}))

	fmt.Println("------------------123123123-")

	var rr real2.RetrieverGet
	rr = real2.RealRetriever{}
	fmt.Println(get(rr))
}
